package oop3.teacher;

public class Teacher {
    String name;
    int age;
    int teaAge; //教龄
    char sex;

    public Teacher(String name, int age, int teaAge, char sex) {
        this.name = name;
        this.age = age;
        this.teaAge = teaAge;
        this.sex = sex;
    }

    public void selfIntroduce() {
        System.out.println("大家好，我是" + name + "老师,年龄" + age + "岁,教龄" + teaAge + "年");
    }

    public void giveLession() {     //上课
        System.out.println("同学们好，开始上课");
    }
}
